package com.hgyc.mom.wms.enums;

import java.util.ArrayList;
import java.util.List;

/**
 * 出库单类型字典类
 * 自动生成的枚举类，请勿手动修改

 * @author fwj
 * @since 2025-09-25 09:48:20
 * @version 1.0
 **/
public enum StockOutTypeEnum {
    OUT_SOURCE("out_source", "委外发料"),
    PRODUCT_REQUISITION("product_requisition", "生产领料"),
    MAINTAIN("maintain", "维修发料"),
    SALE_OUT("sale_out", "销售出库"),
    RETURN_SUPPLIER("return_supplier", "退供应商"),
    OTHER("other", "其他发料")
    ;

    private final String value;
    private final String label;

    StockOutTypeEnum(String value, String label) {
        this.value = value;
        this.label = label;
    }

    public String getValue() {
        return this.value;
    }

    public String getLabel() {
        return this.label;
    }

    public static StockOutTypeEnum of(String value) {
        if (value == null) {
            return null;
        }
        for (StockOutTypeEnum item : StockOutTypeEnum.values()) {
            if (item.value.equals(value)) {
                return item;
            }
        }
        return null;
    }

    @Override
    public String toString() {
        return this.label;
    }
}

